#!/bin/sh

HEHE_REGISTRY_HOST=$(ifconfig eth0 | grep inet | awk '{print $2}' | cut -d':' -f2) && \
sed -i "s/{{HEHE_REGISTRY_HOST}}/${HEHE_REGISTRY_HOST}/" ./slugbuilder/Dockerfile && \
sed -i "s/{{HEHE_REGISTRY_HOST}}/${HEHE_REGISTRY_HOST}/" ./slugrunner/Dockerfile && \
docker build -t cloudmario/builder:v1.8.0 .
